package com.xuxu.product.service;

import ch.qos.logback.core.rolling.helper.IntegerTokenConverter;
import com.xuxu.product.entity.ProductEntity;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @className: ElasticService
 * @author: Maxuxu
 * @date: 2022/8/18 9:37
 * @description: elasticsearch的service接口
 */
public interface ElasticService {
    void addManyDocum() throws IOException;
    // 添加文档
    void addDocum(ProductEntity product, String docId) throws IOException;
    // 分页查询
    void searchPage(String name, Integer index, Integer size) throws IOException;
    // 分页高亮查询
    List<Map<String, Object>> highLightSearch(String keyword, Integer pageindex, Integer pageSize) throws IOException;
}
